#!/bin/bash

# 开关服务器
h="./server.sh start|stop"

op=$1

# 单客户端机器人数量
oneNum=300

case $op in
	start)
		cd /root/project/DBServer/Debug
		nohup ./DBServerA > /dev/null 2>&1 &
		cd /root/project/LogicServer/Debug
		nohup ./LogicServerA > /dev/null 2>&1 &
		echo "start DBServerA LogicServerA"
		;;
	stop)
		pkill DBServerA
		pkill LogicServerA
		echo "stop DBServerA LogicServerA"
		;;
	*)
		echo $h
		;;
esac

